package com.java.springboot.model;

import java.io.Serializable;

public class Book implements Serializable {
    private int id;
    private String bookname;
    private String press;
    private String author;
    private Double pricing;
    private int amount;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Double getPricing() {
        return pricing;
    }

    public void setPricing(Double pricing) {
        this.pricing = pricing;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public Book() {
    }

    public Book(int id, String bookname, String press, String author, Double pricing, int amount) {
        this.id = id;
        this.bookname = bookname;
        this.press = press;
        this.author = author;
        this.pricing = pricing;
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookname='" + bookname + '\'' +
                ", press='" + press + '\'' +
                ", author='" + author + '\'' +
                ", pricing=" + pricing +
                ", amount=" + amount +
                '}';
    }
}
